import request from '@/utils/request'

// 查询公众号用户关联列表
export function listUserWechatAccounts(query) {
  return request({
    url: '/system/UserWechatAccounts/list',
    method: 'get',
    params: query
  })
}

// 查询公众号用户关联详细
export function getUserWechatAccounts(id) {
  return request({
    url: '/system/UserWechatAccounts/' + id,
    method: 'get'
  })
}

// 新增公众号用户关联
export function addUserWechatAccounts(data) {
  return request({
    url: '/system/UserWechatAccounts',
    method: 'post',
    data: data
  })
}

// 修改公众号用户关联
export function updateUserWechatAccounts(data) {
  return request({
    url: '/system/UserWechatAccounts',
    method: 'put',
    data: data
  })
}

// 删除公众号用户关联
export function delUserWechatAccounts(id) {
  return request({
    url: '/system/UserWechatAccounts/' + id,
    method: 'delete'
  })
}
